package com.aisile.wemedia;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @Auther:yry
 * @Date:2024/7/18 0018
 * @VERSON:1.0
 */
@SpringBootApplication
@MapperScan("com.aisile.wemedia.mapper")
@EnableDiscoveryClient
public class WemediaApplication {
    public static void main(String[] args) {
        SpringApplication.run(WemediaApplication.class);
    }


    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}